package com.example.lxy.service.impl;

import com.example.lxy.mapper.Deptmapper;
import com.example.lxy.pojo.dept;
import com.example.lxy.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private Deptmapper deptmapper;

    @Override
    public List<dept> list() {
        return deptmapper.list();
    }

    @Override
    public boolean del(int id) {
        return deptmapper.del(id);
    }

    @Override
    public dept upid(int id) {
        return deptmapper.upid(id);
    }

    @Override
    public void update(dept d) {
         deptmapper.update(d);
    }

    @Override
    public void add(dept d) {
        deptmapper.add(d);
    }
}
